/**
 * 
 */
package org.crud4j.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Each type of field has it's own editor in the edit screen. Crud4j selects the
 * editor according to the type, it has a collection of rules that maps types to
 * editors. This behaviour can be overridden by specifying a different editor in
 * the getter method of the field.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CrudFieldEditor {

	FieldEditor value() default FieldEditor.DEFAULT;

}
